<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Periodo - SAA</title>
    </h:head>
    <h:body>
        #{alunoController.setAluno(usuarioController.aluno)}
        <h:dataTable value="#{alunoController.disciplinasMatriculadas()}" var="matriculada">
            <h:column><h:form><h:commandLink value="Gerenciar notas e metas  em #{matriculada.ofertaDisciplina.disciplina.nome}" action="#{alunoController.gerenciar(matriculada)}" /></h:form></h:column>
        </h:dataTable>
        
        <h:dataTable value="#{alunoController.disciplinasOfertadas()}" var="ofertada">
            <h:column><h:form><h:commandLink value="Se matricular em #{ofertada.disciplina.nome}" action="#{alunoController.matricular(ofertada)}" /></h:form></h:column>
        </h:dataTable>
    </h:body>
</html>

